const app = getApp();
Page({
  data: {
    background: ['green', 'red', 'yellow','blue'],
    indicatorDots: true,
    autoplay: true,
    interval: 1000,
    circular:true
  },
  swipe(e){
    console.log(e.detail.current)
    if(e.detail.current==3){
      this.setData({
        autoplay:false
      })
    }
  }
})